package com.demo.sharelucas.record;

public record Person(String name, Address address) {

    public record Address(String street, String city) { }

    public String fullAddress() {
        return name + " lives at " + address.street() + ", " + address.city();
    }
}
